package com.example.demo.dao;

import com.example.demo.model.TenantDbConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ethan.An
 * @description: 租户数据源 DAO
 * @date 2019/12/314:38 PM
 */
@Repository
public interface TenantDbConfigRepository extends JpaRepository<TenantDbConfig, Long> {

    List<TenantDbConfig> findByEnable(Integer enable);
}
